package com.bruce.demo1.principles.demo6.crp.demo2;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 测试类 聚合关系实现了在运行时绑定，可以灵活扩充
 * @AUTHOR CNBruceLee
 * @DATE 2021/6/30 8:51
 */
public class Test {
    public static void main(String[] args) {
        ElectricCar electricCar = new ElectricCar();
        electricCar.setColor(new Red());
        electricCar.move();
    }
}
